class Girl:
    def __init__(self,name,age):
        self.name=name
        self.__age=age
    def __ask_age(self):
        print('私有方法:宁多大了')

    def public_ask(self):
        print('能问你年龄吗')

    def private_say(self):
        print(f'{self.name}年龄是{self.__age}')

        self.__ask_age()

xiaoming = Girl(name='小明',age='18')

xiaoming.private_say()